package com.zhao.until;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName:ZhaoRule
 * @author:赵培舒
 * @date:Created in 2021/4/20 19:49
 * @Email:stevezhao@nyist.edu.cn
 * @description:轮询
 * @version:1.0
 */
@Configuration
public class ZhaoRule {

    @Bean
    public IRule myRule(){
       //return new ZhaoRandomRule();
        return new RoundRobinRule();
   }

}
